﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JasonTest.aspx.cs" Inherits="JasonTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="css/common.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/common.js" type="text/javascript"></script>
    <script type="text/javascript">
        var xhr;
        window.onload = function () {
            xhr = createXmlHttp();
            load();
        }

        function load() {
            xhr.open("GET", "Jason_ListAll.ashx", true);
            xhr.setRequestHeader("if-Modified-Since", "0");
            xhr.onreadystatechange = function () {
                if (xhr.readyState == 4) {
                    if (xhr.status == 200) {
                        var res = xhr.responseText;
                        // alert(res);
                        var Jason_res = eval("(" + res + ")");
                        for (var i = 0; i < Jason_res.length; i++) {
                            alert(Jason_res[i].SCnName);
                        }
                    }
                }
            }
            xhr.send(null);
        }

    </script>
    <style type="text/css">
        #content{width:900px;}
        .listTable td
        {
            background-color:#4f81bc; color:#fff;font-size:16px;
        }
        .listTable td a{ color:#000000;}
        .listTable td a:hover{ color:#000000;}
        .listTable td a:vistied{ color:#000000;}
    </style>
</head>
<body>
<center>
<form id="fLogin" action="" method="post" runat="server">
    <table id="title" border="0">
        <tr>
            <td>学生列表</td>
        </tr>
    </table>
    
    <table id="content" border="0" cellpadding="0" cellspacing="0">
    <tr><td valign="top">
        <table class="listTable"  cellpadding="0" cellspacing="1" style="background-color:#000000;font-family:'微软雅黑'; font-size:12px; width:99%;border:1px solid #395988; ">
        <tr>
            <td>ID</td>
            <td>班级名称</td>
            <td>登录名</td>
            <td>中文名</td>
            <td>性别</td>
            <td>电话</td>
            <td>注册时间</td> 
            <td>操作</td> 
        </tr>
        </table>
     </td></tr>
    </table>
    <input type="button" id="btnPrePage" value="上一页" onclick="PrePage()" class="btnC" />
     <input type="button" id="btnNextPage" value="下一页" onclick="NextPage()" class="btnC" />
</form>
</center>
</body>
</html>

